<?php
namespace App\Http\Controllers\Buz;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class CompeteInfoController extends Controller
{
    public function getProtocol(Request $request)
    {
        if ($request->isMethod('post')) {
            if ($request->input('agree') == 1) {
                $user = \Session::get('user');
                if ( ! $user->is_profiled) {
                    return redirect()->route('buz.auth.base');
                }
                return redirect()->route('buz.auth.remit');
            }
            return back();
        }
        return view('buz.information.prefectInfoPro');
    }
}
